<!-- /* Description for file.
 * Excel导入
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/projectmanagements
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0712
 * @lastmodified  张海杰2011年0712
 */
 -->

 <?php
echo $html->css ( 'tab' );
echo $javascript->link('jquery-1.4.2');
?>

<script type="text/javascript">
	function mycheck() {
		$("#f2").submit();	
	}
	$(function()
			{
				$("#addfile").click(function(){
					file=$("#ff").val();
					if(file=="")
					{
						alert("Excel文件不能为空");
					}
					var strs= new Array(); 
					strs=file.split(".");
					filetype=strs[strs.length-1];
					if(filetype=="xls" || filetype=="xlsx")
					{
						$("#f22").submit();
					}
					else
					{
						alert("您上传的不是Excel文件");
					}
						//$("#f22").submit();
				});	
			});
</script>
<div class="tabflex">


	<?php echo $form->create('Outputexcel',array('action'=>"coldcall/1",'type'=> 'post','enctype'=>'multipart/form-data','id'=>'f22'));?>
<div class="tabflex" style="width:70%;">		
	选择Excel文件:<?php echo $form->file('Attachment',array('label'=>false,'size'=>50,'name'=>'Attachment','id'=>'ff','class'=>'TextBoxEL'));?> 
</div>
<div class="tabflex" style="width:10%;">
	<?php echo $form->button('确定',array('class'=>'oksubmit','id'=>'addfile'));?>
</div>
	<?php echo $form->end();?>
